package com.ncloud.common.enmus;

/**
 * Created by shiqiang on 2017/4/3.
 */
public enum ResultEnum {
    /*未知错误*/
    UNKONE_ERROR(-1,"未知错误"),
    /*成功*/
    SUCCESS(0,"成功"),
    /*失败*/
    FAIL(1,"失败"),
    //参数不合法
    PARAM_ERROR(2002,"参数不合法"),
    DATABASE_ERROR(7001,"数据库异常"),
    /*.... 其他错误定义*/
    DEPOSIT_NO_MORE_VALUE(8001,"保证金账户余额不足"),
    USER_NOT_FOUND(1001, "用户不存在"),
    USER_PASSWD_ERROR(1002, "密码不正确"),
    USER_LOCK(1003, "用户被锁定"),
    USER_LOCK_OVER3(1006, "连续输入错误超过3次，您的账号已被锁定，请联系系统管理员解锁"),
    AUTH_CODE_CHECK_ERROR(1004,"找回密码验证失效"),
    USER_EXISTS(1005, "用户已经存在"),
    /*企业管理80-100*/
    COMPANY_LOCK(80,"企业已被锁定!"),
    /*菜单管理 100-120*/
    MENU_SAME_NAME(100,"菜单重名"),
    MENU_SAME_SORT(101,"菜单同序"),
    MENU_MASTER(102,"主菜单(home)不能删除"),

    /*角色管理 121-150*/
    ROLE_DEL_ACCOUNT_PEPART(121,"角色信息已经与账号或账号组绑定!"),
    /*分组管理151-180*/
    DEPART_DEL_ACCOUNT(151,"账号组下包含了账号!");
    ;
    /*枚举值*/



    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
